package com.bill.common.system.entity;

import com.sinba.common.entity.BaseDomainEntity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import java.util.Date;
import java.util.List;

import javax.persistence.Cacheable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;

@SuppressWarnings( {"serial",
    "rawtypes"
} )
@Entity
@Cacheable
@Cache( usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE )
public class EmailMessage
    extends BaseDomainEntity
{
    @Id
    @GeneratedValue( strategy = GenerationType.AUTO )
    private Long emailMessageId;
    private String subject; //邮件主题
    @Lob
    private String content; //邮件内容
    private String mailPath; //邮件存储路径（用来保存邮件在本地)
    private String affachmentPath; //附件的路�?
    private String picPath; //图片路径
    private String folderName; //邮件类型--发�?or接收  
                               //接收
    private String fromUser; //发件�?
    private Date receiveDate; //接收日期
                              //发�?
    private String toUser; //接收�?
    private String bcc; //密�?
    private String cc; //抄�?
    private Date sendDate; //发�?日期
    private boolean isToRequest;
    private String keyword;

    public Long getEmailMessageId(  )
    {
        return emailMessageId;
    }

    public void setEmailMessageId( Long emailMessageId )
    {
        this.emailMessageId = emailMessageId;
    }

    public String getSubject(  )
    {
        return subject;
    }

    public void setSubject( String subject )
    {
        this.subject = subject;
    }

    public String getContent(  )
    {
        return content;
    }

    public void setContent( String content )
    {
        this.content = content;
    }

    public String getMailPath(  )
    {
        return mailPath;
    }

    public void setMailPath( String mailPath )
    {
        this.mailPath = mailPath;
    }

    public String getAffachmentPath(  )
    {
        return affachmentPath;
    }

    public void setAffachmentPath( String affachmentPath )
    {
        this.affachmentPath = affachmentPath;
    }

    public String getPicPath(  )
    {
        return picPath;
    }

    public void setPicPath( String picPath )
    {
        this.picPath = picPath;
    }

    public String getFolderName(  )
    {
        return folderName;
    }

    public void setFolderName( String folderName )
    {
        this.folderName = folderName;
    }

    public String getFromUser(  )
    {
        return fromUser;
    }

    public void setFromUser( String fromUser )
    {
        this.fromUser = fromUser;
    }

    public Date getReceiveDate(  )
    {
        return receiveDate;
    }

    public void setReceiveDate( Date receiveDate )
    {
        this.receiveDate = receiveDate;
    }

    public String getToUser(  )
    {
        return toUser;
    }

    public void setToUser( String toUser )
    {
        this.toUser = toUser;
    }

    public String getBcc(  )
    {
        return bcc;
    }

    public void setBcc( String bcc )
    {
        this.bcc = bcc;
    }

    public String getCc(  )
    {
        return cc;
    }

    public void setCc( String cc )
    {
        this.cc = cc;
    }

    public Date getSendDate(  )
    {
        return sendDate;
    }

    public void setSendDate( Date sendDate )
    {
        this.sendDate = sendDate;
    }

    public boolean isToRequest(  )
    {
        return isToRequest;
    }

    public void setToRequest( boolean isToRequest )
    {
        this.isToRequest = isToRequest;
    }

    public String getKeyword(  )
    {
        return keyword;
    }

    public void setKeyword( String keyword )
    {
        this.keyword = keyword;
    }
}
